package thirdpart.codec;

import io.vertx.core.buffer.Buffer;
import thirdpart.bean.CommonMsg;

/**
 * @Author: Tzu
 * @Date: 2020/11/18 18:59
 * @Version: 1.0
 * @Description: commonmsg<==>tzp数据流
 */
public interface IMsgCodec {
    //commonmsg-->tzp数据流
    public Buffer encodeToBuffer(CommonMsg msg);

    //tzp数据流-->commonmsg
    public CommonMsg decodeFromBuffer(Buffer buffer);
}
